// ======================================================================
// Copyright (C) 2013 Hell-Prototypes. / www.hellprototypes.com
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or (at
// your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
// ======================================================================
#ifndef PLOT_RAW_DATA_H
#define PLOT_RAW_DATA_H

#include <qwt_series_data.h>
#include <qvector.h>
#include <qwt_system_clock.h>

class plot_raw_data : public QwtSeriesData<QPointF>
{
public:
    plot_raw_data();

    virtual size_t size() const;
    virtual QPointF sample( size_t i ) const;
    virtual QRectF boundingRect() const;

    bool set_plot_raw_data(QVector<double> &plot_raw_data);
    bool set_x_axis_scale(int x_axis_scale);
    //void set_canvas_width(int canvas_width) {m_canvas_width = canvas_width;}

private:
    QVector<double> m_plot_raw_data;
    int m_x_axis_scale;

    QwtSystemClock m_sys_clock;
};

#endif // PLOT_RAW_DATA_H
